.class public Lcom/xingbook/park/a/m;
.super Landroid/widget/BaseAdapter;

# interfaces
.implements Lcom/xingbook/park/c/a/h;


# instance fields
.field private a:Lcom/xingbook/park/b/a;

.field private b:Landroid/app/Activity;

.field private c:F


# direct methods
.method public constructor <init>(Landroid/app/Activity;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p1, p0, Lcom/xingbook/park/a/m;->b:Landroid/app/Activity;

    invoke-static {p1}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v0

    iput v0, p0, Lcom/xingbook/park/a/m;->c:F

    return-void
.end method


# virtual methods
.method public a(Lcom/xingbook/park/b/a;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/a/m;->a:Lcom/xingbook/park/b/a;

    invoke-virtual {p0}, Lcom/xingbook/park/a/m;->notifyDataSetChanged()V

    return-void
.end method

.method public a(Ljava/lang/String;I)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/a/m;->a:Lcom/xingbook/park/b/a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/a/m;->a:Lcom/xingbook/park/b/a;

    invoke-virtual {v0, p1, p2}, Lcom/xingbook/park/b/a;->a(Ljava/lang/String;I)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/park/a/m;->notifyDataSetChanged()V

    :cond_0
    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/a/m;->a:Lcom/xingbook/park/b/a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/a/m;->a:Lcom/xingbook/park/b/a;

    invoke-virtual {v0}, Lcom/xingbook/park/b/a;->c()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0}, Lcom/xingbook/park/a/m;->getCount()I

    move-result v0

    if-ge p1, v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/a/m;->a:Lcom/xingbook/park/b/a;

    invoke-virtual {v0}, Lcom/xingbook/park/b/a;->c()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4

    invoke-virtual {p0, p1}, Lcom/xingbook/park/a/m;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_1

    instance-of v0, v1, Lcom/xingbook/park/b/b;

    if-eqz v0, :cond_1

    if-eqz p2, :cond_0

    instance-of v0, p2, Lcom/xingbook/park/c/a/g;

    if-eqz v0, :cond_0

    move-object v0, p2

    check-cast v0, Lcom/xingbook/park/c/a/g;

    check-cast v1, Lcom/xingbook/park/b/b;

    invoke-virtual {v0, v1}, Lcom/xingbook/park/c/a/g;->setData(Lcom/xingbook/park/b/b;)V

    :goto_0
    return-object p2

    :cond_0
    new-instance p2, Lcom/xingbook/park/c/a/g;

    iget-object v0, p0, Lcom/xingbook/park/a/m;->b:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iget v2, p0, Lcom/xingbook/park/a/m;->c:F

    invoke-direct {p2, v0, v2, p0}, Lcom/xingbook/park/c/a/g;-><init>(Landroid/content/Context;FLcom/xingbook/park/c/a/h;)V

    new-instance v0, Landroid/widget/AbsListView$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v0, v2, v3}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {p2, v0}, Lcom/xingbook/park/c/a/g;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    check-cast v1, Lcom/xingbook/park/b/b;

    invoke-virtual {p2, v1}, Lcom/xingbook/park/c/a/g;->setData(Lcom/xingbook/park/b/b;)V

    goto :goto_0

    :cond_1
    const/4 p2, 0x0

    goto :goto_0
.end method
